//
//  LDSViewControllerViewModel.h
//  LDSMVVMBase
//
//  Created by kai_leedarson on 2017/10/9.
//  Copyright © 2017年 maple_leedarson. All rights reserved.
//

#import <Foundation/Foundation.h>
@protocol LDSViewControllerViewModelDelegate <NSObject>
@optional
- (void)lds_didReceiveDataWithDataSource:(NSArray *)dataSource andSectionDataSource:(NSArray *)sectionDataSource;
@end

@interface LDSViewControllerViewModel : NSObject{
@protected
    NSMutableArray              *_dataSource;
    NSMutableArray              *_sectiondataSource;
    NSMutableArray              *_fetchDataSource;
}
@property(nonatomic, strong) NSMutableArray *dataSource;//cell 数据源
@property(nonatomic, strong) NSMutableArray *sectionDataSource;//section 数据源
@property(nonatomic, strong) NSMutableArray *fetchDataSource;//网络或其他地方得到的数据源
@property(nonatomic, weak)  id<LDSViewControllerViewModelDelegate> delegate;

- (void)loadFetchData;

@end
